package com.sport.service;

import com.sport.entity.SysUser;
import com.sport.utils.QueryInfo;
import com.sport.utils.Result;
import com.sport.vo.LoginVo;

public interface SysUserService {
    Result login(LoginVo loginVo);

    SysUser findByUsername(String username);

    Result findPage(QueryInfo queryInfo);

    Result insert(SysUser user);

    Result delete(long id);

    Result update(SysUser user);

    /**
     * 根据邮箱修改密码
     * @param
     * @param
     */
    void updatePwdByMail(String email, String password);
}
